package com.meilai.project.controller.mini.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.List;

/**
 * @author 张驰
 * @description 小程序-导出点位-入参
 * @date 2022-08-31 09:16
 */
@Data
public class MiniExportDataParams {
    @NotNull(message = "开始日期不能为空")
    @ApiModelProperty("开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginDate;

    @NotNull(message = "结束日期不能为空")
    @ApiModelProperty("结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @NotNull(message = "楼盘ids不能为空")
    @ApiModelProperty("楼盘ids")
    private List<Long> building_ids;

    @ApiModelProperty("媒体类型ids,可不传")
    private List<Long> media_type_ids;

    @ApiModelProperty("是否按楼层分组进行统计")
    private Boolean floor_group = false;

    @ApiModelProperty("1:只统计A面 2:只统计B面 3:AB都需要")
    private Integer abType = 3;

    @ApiModelProperty("资源相关条件")
    private List<MiniSimpleObjForSourceDTO> sourceList;
}
